package com.itheima.service;

import com.itheima.pojo.PageResult;
import com.itheima.pojo.Student;

import java.util.List;

public interface StudentService {
    PageResult page(Integer page, Integer pageSize);

    void save(Student student);

    Student getById(Integer id);

    void update(Student student);


    void deleteById(List<Integer> ids);


    Integer getViolationCount(Integer id);

    void addViolation(Integer id, Integer newCount, Integer score);
}
